<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
           $lang=7.99;
           $math=6.89;
           $eng=3.99;
           $sum=$lang+$math+$eng;
           $a= $lang*2;
           $b=$math*1;
           $c=$eng*3;
           $d=$a+$b+$c;
        ?>
        <table border="1">
            <thead>
                <tr>
                    <th>商品名称</th>
                    <th>购买数量</th>
                    <th>商品价格</th>
                    <th>合计</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>香蕉</td>
                    <td>2</td>
                    <td>7.99</td>
                    <td><?php echo $a?></td>
                </tr>
                <tr>
                    <td>苹果</td>
                    <td>1</td>
                    <td>6.89</td>
                    <td><?php echo $b?></td>
                </tr>
                <tr>
                    <td>橘子</td>
                    <td>3</td>
                    <td>3.99</td>
                    <td><?php echo $c?></td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td>商品折扣0.8</td>
                    <td><?php echo $d*0.8?></td>
                </tr>
                
            </tbody>
        </table>

    </body>
</html>
